import { testFn } from "../utils/common";
import child_process from "child_process";

console.log("🚀 ~ child_process:", child_process);

function checkNpmTool() {
  try {
    const result = child_process.execSync("npmxx --version", {
      encoding: "utf8",
    });
    console.log("==============kkk");
    console.log("🚀 ~ checkNpmTool ~ result:", result);
  } catch (err: any) {
    console.log("🚀 ~ checkNpmTool ~ err:", err);
    console.log("🚀 ~ checkNpmTool ~ err.status:", err.status);
  }
}

export default testFn(checkNpmTool);
